﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AutoFillCenter
{
    class KeyAutoFill : AutoFill
    {
        public bool Fill(String str)
        {
            try
            {
                SendKeys.SendWait(str);
                return true;
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.ToString());
                return false;
            }                        
        }

        public override bool Fill(String str1, String str2)
        {
            try
            {
                SendKeys.SendWait(str1);
                return true;
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.ToString());
            }
            return false;
        }

        public  bool Submit()
        {
            return false;
        }

        public  bool processFill()
        {
            return false;
        }
    }
}
